﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SeguradoraIA.Class;
using Microsoft.SqlServer.Dts.Runtime;

namespace SeguradoraIA.Forms
{
	public partial class Default : PageBase
	{
		protected void Page_Load(object sender, EventArgs e)
		{

		}

        protected void LinkButton1_Click(object sender, EventArgs e)
        {
            Application app = new Application();

            Package package = app.LoadPackage(@"C:\Projetos\TCC\Integration Services Project2\Integration Services Project2\Package.dtsx", null);

            DTSExecResult result = package.Execute();

            ShowAlert("Carga realizada com sucesso!");
        }
	}
}